package org.delphy.indy2.containers
{
	import org.delphy.indy2.core.ICarbonComponent;
	import org.delphy.indy2.containers.carbonPanelClasses.CarbonPlainMetalPanelSkin;

	//--------------------------------------
	//  Styles
	//--------------------------------------
	/**
	 *	Top-left corner radius
	 *	
	 *	@default 0
	 */
	[Style(name="topLeftRadius", type="Number", format="Length", inherit="no")]
	
	/**
	 *	Top-right corner radius
	 *	
	 *	@default 0
	 */
	[Style(name="topRightRadius", type="Number", format="Length", inherit="no")]
	
	/**
	 *	Bottom-left corner radius
	 *	
	 *	@default 0
	 */
	[Style(name="bottomLeftRadius", type="Number", format="Length", inherit="no")]
	
	/**
	 *	Bottom-right corner radius
	 *	
	 *	@default 0
	 */
	[Style(name="bottomRightRadius", type="Number", format="Length", inherit="no")]
		
	/**
	 * Weight of metallic splitter
	 * 
	 * @default 2
	 */
	[Style(name="splitterWeight", type="Number", format="Length", inherit="no")]
	
	/**
	 * Whether to draw the splitter
	 * 
	 * @default true
	 */
	[Style(name="useSplitter", type="Boolean", inherit="no")]
	
	/**
	 * Splitter fill colors
	 * 
	 * @default #000000, #FFFFFF, #000000
	 */
	[Style(name="splitterColors", type="Array", arrayType="Number", inherit="no")]
	
	/**
	 * Splitter fill alphas
	 * 
	 * @default 1
	 */
	[Style(name="splitterAlphas", type="Array", arrayType="Number", inherit="no")]
	
	/**
	 * Splitter fill ratios
	 * 
	 * @default 0, 0.5, 1
	 */
	[Style(name="splitterRatios", type="Array", arrayType="Number", inherit="no")]
	
	/**
	 * Splitter fill ratio units
	 * 
	 * @default ratio
	 */
	[Style(name="splitterRatioUnits", type="Array", arrayType="Number", inherit="no")]
	
	/**
	 * highlight fill colors
	 * 
	 * @default #000000, #FFFFFF, #000000
	 */
	[Style(name="highlightColors", type="Array", arrayType="Number", inherit="no")]
	
	/**
	 * highlight fill alphas
	 * 
	 * @default 1
	 */
	[Style(name="highlightAlphas", type="Array", arrayType="Number", inherit="no")]
	
	/**
	 * highlight fill ratios
	 * 
	 * @default 0, 0.5, 1
	 */
	[Style(name="highlightRatios", type="Array", arrayType="Number", inherit="no")]
	
	/**
	 * highlight fill ratio units
	 * 
	 * @default ratio
	 */
	[Style(name="highlightRatioUnits", type="Array", arrayType="Number", inherit="no")]	
	
	/**
	 * Splitter filters
	 * The filter properties are arrays of style strings.
	 * 
	 * @default "carbonMetalPanelSplitterBevelFilter", "carbonPlainMetalPanelSplitterShadowFilter"
	 */	
	[Style(name="splitterFilter", type="String", inherit="no")]
	
	/**
	 * Highlight filters
	 * The filter properties are arrays of style strings.
	 * 
	 * @default "carbonMetalPanelHighlightBlurFilter"
	 */	
	[Style(name="highlightFilter", type="String", inherit="no")]

	
	public class CarbonPlainMetalPanel extends CarbonMetalPanel
	{		
		public function CarbonPlainMetalPanel()
		{
			super();
			defaultSkin=CarbonPlainMetalPanelSkin;
		}
		
		/**
		 * @protected
		 */
		protected override function createChildren() : void{
			super.createChildren();
			
			// Use a default style if no styleName specified
			if(!styleName)
				styleName="carbonPlainMetalPanel";

			if(!getStyle("borderSkin"))
				setStyle("borderSkin", defaultSkin);				
		}

		/**
		 * @public
		 */
		override public function get defaultStyleName():String{
			return "carbonPlainMetalPanel";
		}

	}
}